home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / biblio / tib / Unix-setup < prev    next >
Text File  |  1989-03-28  |  2KB  |  76 lines

  1. #!/bin/sh
  2. #
  3. # You certainly don't have to use the directories specified below
  4. # for your installation, but you may find that this organization
  5. # is convenient, or that a couple of simple editing steps performed
  6. # on this file will make things easier.  The references are to the
  7. # INSTALL file in this directory.
  8. #
  9. # we assume you are in a directory named "tib" or something like.
  10. # If you change any of the following four lines, you will have to
  11. # make corrections throughout this file.  "tib" doesn't have to
  12. # be a part of /usr/local/lib/tex yet.  You can move it there with
  13. # tar, later on.  You may want to put tib/src somewhere else entirely.
  14. #
  15. mkdir src
  16. mkdir inputs
  17. mkdir doc
  18. mkdir index
  19. #
  20. # INSTALL, section 2.a
  21. #
  22. sed -e 's|AAAAA|/usr/local/lib/tex/tib/doc|' \
  23.     -e 's|BBBBB|/usr/local/lib/tex/tib/inputs|' \
  24.     -e 's|CCCCC|/usr/local/lib/tex/tib/index/common|' \
  25.          tibdoc.tex > doc/tibdoc.tex
  26. mv tibdoc.tex \#tibdoc.tex\#
  27. #
  28. # INSTALL, section 2.b
  29. #
  30. sed -e 's|AAAAA|/usr/local/lib/tex/tib/doc|g' \
  31.     -e 's|BBBBB|/usr/local/lib/tex/tib/inputs|' \
  32.     -e 's|CCCCC|/usr/local/lib/tex/tib/index/common|' \
  33.     -e 's|EEEEE|/usr/local/lib/tex/tib/src|' \
  34.     -e 's|FFFFF|/usr/local/lib/tex/tib/index/INDEX|' tib.man > doc/tib.1
  35. mv tib.man \#tib.man\#
  36. #
  37. # INSTALL, section 2.c
  38. #
  39. sed -e 's|AAAAA|/usr/local/lib/tex/tib/doc|g' intro.tib > doc/intro.tib
  40. mv intro.tib \#intro.tib\#
  41. #
  42. # INSTALL, section 2.d
  43. #
  44. sed     -e 's|BBBBB|/usr/local/lib/tex/tib/inputs|' \
  45.     -e 's|CCCCC|/usr/local/lib/tex/tib/index/common|' \
  46.     -e 's|FFFFF|/usr/local/lib/tex/tib/index/INDEX|' tib.h > src/tib.h
  47. mv tib.h \#tib.h\#
  48. #
  49. # INSTALL, section 2.e and give makefile proper reference to manual page
  50. #
  51. sed -e 's|DDDDD|/usr/local/bin|' \
  52.     -e 's|tib.man|../doc/tib.1|' Makefile > src/Makefile
  53. mv Makefile \#Makefile\#
  54. #
  55. # INSTALL, section 6
  56. #
  57. mv *.tex ./doc
  58. mv Styles ./doc
  59. mv *.ref ./doc
  60. #
  61. # INSTALL, section 7
  62. #
  63. mv *.tib ./inputs
  64. mv *.ttx ./inputs
  65. mv *.ttz ./inputs
  66. #
  67. # INSTALL, section 8
  68. #
  69. mv common ./index
  70. #
  71. # INSTALL, section 9
  72. #
  73. mv *.c ./src
  74. #
  75. echo "Now cd to src, check INSTALL sections 3-4, and make all"
  76.